<div class="modal hide fade in" id="detalheciss<?=$cis_id;?>" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">

    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h3 id="myModalLabel"><?= $t_deta ?> CISS :: <?=$cis_are_nome;?></h3>
    </div>
    
    <div class="modal-body">
    
        <p>
            
            <table class="table table-striped table-bordered table-hover">

                <tr>
                    <th width="100">Setor</th>
                    <th width="90"><?= $_status?></th>
                    <th><?= $t_descricao?></th>
                </tr>

                <?php

                $sql1 = "SELECT ciss.cis_are_id,
                ciss.cis_id,
                ciss.cis_ini,
                ciss.cis_fim,
                ciss.cis_horaini,
                ciss.cis_horafim,
                ciss.cis_msg,
                ciss.cis_url,
                status.sta_nome,
                status.sta_cor,
                cissarea.cis_are_nome
                FROM ciss
                INNER JOIN cissarea ON cissarea.cis_are_id=ciss.cis_are_id
                INNER JOIN status ON status.sta_id=ciss.sta_id
                WHERE ciss.cis_are_id='$cis_are_id' 
                ORDER BY ciss.cis_id DESC";
                $res1 = sql($sql1);
                while($linha1 = mysql_fetch_array($res1)) {

                ?>

                <tr>
                    <td><?=$linha1['cis_are_nome'];?></td>
                    <td style="color:<?=$linha1['sta_cor'];?>;font-weight: bold"><?=$linha1['sta_nome'];?></td>
                    <td>
                    <?php
                    echo "<p>".nl2br($linha1['cis_msg'])."</p>";
                    if ($linha1['cis_url']!= ""){ 
                        echo "<hr>";
                        echo "<p><i class='icon-file' title='<?=$t_realize;?>'></i> <a href='{$linha1['cis_url']}' target='_blank'>".str_replace('.jpg','',str_replace('arquivo/','',$linha1['cis_url']))."</a></p>";     
                    }
                    echo "<hr>
                          <p><strong>In&iacute;cio:</strong> ".todatabr($linha1['cis_ini'])." - {$linha1['cis_horaini']} h<br>
                             <strong>T&eacute;rmino:</strong> ".todatabr($linha1['cis_fim'])." - {$linha1['cis_horafim']} h</p>";
                    ?>
                    </td>
                </tr>

                <?
                } 
                ?>
            </table>
            
        </p>
        
    </div>
    
    <div class="modal-footer">
    
        <button class="btn" data-dismiss="modal" aria-hidden="true"><?= $t_fech ?></button>
        
    </div>
    
</div>